<?php
namespace app\oa\ext;

class Role {
    const Employee = 1;         // 员工

    const Supervisor = 2;       // 主管
    const DeputySupervisor = 3; // 副主管

    const Director = 4;         // 主任
    const DeputyDirector = 5;   // 副主任

    const Secretary = 6;        // 秘书
    const DeputySecretary = 7;  // 副秘书

    const Boss = 8;             // 老板

    const Enum = [
        'Employee' => Role::Employee,
        'Supervisor' => Role::Supervisor,
        'DeputySupervisor' => Role::DeputySupervisor,
        'Director' => Role::Director,
        'DeputyDirector' => Role::DeputyDirector,
        'Secretary' => Role::Secretary,
        'DeputySecretary' => Role::DeputySecretary,
        'Boss' => Role::Boss
    ];

    const Select = [
        '员工' => Role::Employee,
        '主管' => Role::Supervisor,
        '副主管' => Role::DeputySupervisor,
        '办公室主任' => Role::Director,
        '办公室副主任' => Role::DeputyDirector,
        '秘书' => Role::Secretary,
        '副秘书' => Role::DeputySecretary,
        '老板' => Role::Boss
    ];
}